<div class="product-list">
	<?php if(count($products) <= 0 || $products == null) : ?>
		Không tìm thấy kết quả nào.
	<?php else: ?>
		<div>Có <?php echo $resultCount ?> kết quả.</div>
		<?php foreach($products as $product){ ?>
			<div class="listview">
				<div class="row">
					<a href="<?php echo $BaseUrl?>index.php/index/checkprice/<?php echo $product['id']?>">
						<img class="thumb-img" src="<?php echo $product['image'] ?>" alt="<?php echo $product['name'] ?>"/><br />
						<span class="product-name"><?php
							if (strlen($product['name'])>30)	{
								$product['name'] = substr($product['name'], 0, 27)."...";
							} 
							echo $product['name'] ?>
						</span>
					</a>
				</div>
			</div> <!-- end list view-->
		<?php } ?>
	<?php endif ?>
</div><!-- end product list-->